package nk.code.app.models;

import org.nutz.dao.entity.annotation.*;

import java.io.Serializable;

/**
 * 通过 DBCodeCreateTool 代码自动生成
 *
 * @author 黄川
 * @time 2015-11-24 23:52:19
 */
@Table("MsgNews")
public class MsgNews implements Serializable {
    
    private static final long serialVersionUID = 1L;
    /**********
     * attribute
     ***********/
    @Column("newsid")
    @Name
    @Prev(els = @EL("uuid()"))
    @ColDefine(width = 32)
    private String newsid;

    @Column("newstypeid")
    @Comment("新闻类型id")
    private int newstypeid;

    @Column("title")
    @Comment("新闻题目")
    private String title;

    @Column("istop")
    @Comment("新闻是否置顶")
    private Boolean istop = false;

    @Column("ishide")
    @Comment("新闻是否隐藏")
    private Boolean ishide = false;

    @Column("isrecomm")
    @Comment("新闻是否被推荐")
    private Boolean isrecomm = false;

    @Column("recommimg")
    private String recommimg;

    @Column("depid")
    private int depid = 0;
    /**
     * 部门类别：DepIDList
     */
    @Column("depidlist")
    @ColDefine(type = ColType.TEXT)
    private String depidlist;
    /**
     * 人员分类：RoleIDList对应的是表SysRole的RoleID字段
     */
    @Column("roleidlist")
    @ColDefine(type = ColType.TEXT)
    private String roleidlist;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getNewsid() {
        return newsid;
    }

    public void setNewsid(String newsid) {
        this.newsid = newsid;
    }

    public int getNewstypeid() {
        return newstypeid;
    }

    public void setNewstypeid(int newstypeid) {
        this.newstypeid = newstypeid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Boolean getIstop() {
        return istop;
    }

    public void setIstop(Boolean istop) {
        this.istop = istop;
    }

    public Boolean getIshide() {
        return ishide;
    }

    public void setIshide(Boolean ishide) {
        this.ishide = ishide;
    }

    public Boolean getIsrecomm() {
        return isrecomm;
    }

    public void setIsrecomm(Boolean isrecomm) {
        this.isrecomm = isrecomm;
    }

    public String getRecommimg() {
        return recommimg;
    }

    public void setRecommimg(String recommimg) {
        this.recommimg = recommimg;
    }

    public int getDepid() {
        return depid;
    }

    public void setDepid(int depid) {
        this.depid = depid;
    }

    public String getDepidlist() {
        return depidlist;
    }

    public void setDepidlist(String depidlist) {
        this.depidlist = depidlist;
    }

    public String getRoleidlist() {
        return roleidlist;
    }

    public void setRoleidlist(String roleidlist) {
        this.roleidlist = roleidlist;
    }
}
